<?php

namespace App\HttpController\Admin;

use App\Logic\Account\StatisticsService;
use App\Logic\Purchase\PurchaseService;

/**
 * 统计数据
 */
class Statistics extends BaseController {
    /**当前有效的数据*/
    public function index()
    {
        $service = new StatisticsService();
        $result = $service->getCurrentStatistics();
        return $this->writeJsonByOutput($result);
    }
}
